home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / src / MAKEFILE.DJ < prev    next >
Encoding:
Text File  |  1997-03-03  |  2.3 KB  |  89 lines

  1. # Makefile for core library for MS-DOS using djgpp
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.1
  5. # Copyright (C) 1995-1996  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id:$
  23.  
  24. # $Log:$
  25.  
  26.  
  27. ##### MACROS #####
  28.  
  29. VPATH = RCS
  30.  
  31. INCDIR = ..\include
  32. LIBDIR = ..\lib
  33.  
  34. # Want UniVBE (Display Doctor) Support, Scitech Software www.scitechsoft.com
  35. # Set -I to point to scitech include files.
  36. # Haven`t finished doing univbe version for djgpp
  37. GCCFLAGS += -DUNIVBE -D__DOS__ -D__MSDOS32__ -IC:\scitech\include
  38. #GCCFLAGS +=  -D__DOS__ -D__MSDOS32__
  39.  
  40. # Set this to point to the GRX20 includes
  41. GCCFLAGS += -IC:\djgpp\contrib\grx20\include
  42.  
  43. CORE_SOURCES = accum.c alpha.c alphabuf.c api.c attrib.c bitmap.c blend.c \
  44.     bresenhm.c clip.c context.c copypix.c depth.c dlist.c draw.c \
  45.     drawpix.c enable.c eval.c fog.c feedback.c get.c image.c\
  46.     interp.c light.c lines.c logic.c masking.c matrix.c misc.c osmesa.c \
  47.     pb.c pixel.c points.c pointers.c polygon.c readpix.c scissor.c span.c \
  48.     stencil.c teximage.c texobj.c texture.c triangle.c varray.c vb.c \
  49.     vertex.c winpos.c xform.c
  50.  
  51. DRIVER_SOURCES = dosmesa.c
  52.  
  53. SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
  54.  
  55. OBJECTS = $(SOURCES:.c=.o)
  56.  
  57. GCCFLAGS += -g
  58.  
  59. ##### RULES #####
  60.  
  61. .c.o:
  62.     gcc -c -DDOSVGA -I$(INCDIR) $(GCCFLAGS) $<
  63.  
  64. ##### TARGETS #####
  65.  
  66. GL_LIB = dosmesa.a
  67.  
  68. default: $(GL_LIB)
  69.  
  70. clean:
  71.     -del *.o *~
  72.  
  73. MAKELIB = AR ruv
  74. RANLIB = ls
  75.  
  76. # Make the library
  77. $(GL_LIB): $(OBJECTS)
  78.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  79.  
  80. include depend.dos
  81. #
  82.  
  83. # Run 'make depend' to update the dependencies if you change what's included
  84. # by any source file.
  85. #
  86. dep: $(SOURCES)
  87.     makedep -fdepend -Y -I../include $(SOURCES)
  88.  
  89.